package com.atguigu.shardingjdbcdemo.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName t_order_item0
 */
@TableName(value ="t_order_item")
@Data
public class OrderItem implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID) //分布式id
    private Long id;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Long orderId;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private Integer count;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}